package com.youmu.shop.system.bean;

import java.util.Date;

public class Role{
    /**
     * 
     * 表字段 : xx_role.id
     */
    private Long id;

    /**
     * 角色名称
     * 表字段 : xx_role.name
     */
    private String name;

    /**
     * 角色是否内置
     * 表字段 : xx_role.is_system
     */
    private Boolean isSystem;

    /**
     * 角色描述
     * 表字段 : xx_role.description
     */
    private String description;

    /**
     * 角色创建时间
     * 表字段 : xx_role.create_date
     */
    private Date createDate;

    /**
     * 角色最新修改时间
     * 表字段 : xx_role.modify_date
     */
    private Date modifyDate;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table xx_role
     *
     * @mbg.generated
     */
    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Boolean getIsSystem() {
        return isSystem;
    }

    public void setIsSystem(Boolean isSystem) {
        this.isSystem = isSystem;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", isSystem=").append(isSystem);
        sb.append(", description=").append(description);
        sb.append(", createDate=").append(createDate);
        sb.append(", modifyDate=").append(modifyDate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}